/* weixin common css for 1080px width*/
/* 此variable对应的css尺寸为width-1080px 下的*/

@charset "utf-8";
// color
$color-text-title: #333;
$color-text: #666;
$color-text-primary: #555;
$color-text-label: #999;
$color-text-placeholder: #ccc;
$color-title: #1C57DB;

$color-btn_bg: #C8D4FD;
$color-bg: #F6F3F7;
$color-white: #fff;
$color-black: #000;
$color-disabled: rgba(0, 0, 0, 0.2);
$color-alpha5: rgba(255, 255, 255, 0.5);
$color-on: #f1ca15;

$color-base: #246fde;
$color-oncolor: #074D93;
$color-base-light: #4a9fe9;

$color-blue-light: #98bef6;

$color-success: #5cc429;
$color-warning: #fb841a;
$color-error: #fc5656;
$color-border: #dbdbdb;
$color-txt: #808080;
$color-cover-bg: rgba(0, 0, 0, 0.7);
$color-btn-content: #e8edf4;
$color-help: #27b3e7;
$color-touch-avtive: #ececec;

// border
$border: 1px solid $color-border;

// font-size
$font-size-small: 26px;
$font-size-mini: 22px;
$font-size-base: 30px;
$font-size-large: 34px;
$font-size-larges: 42px;
$font-size-ultra: 60px;
$font-size-ultra-plus: 72px;

// margin
$margin-base: 25px;
$margin-base-small: 4px;
$margin-base-half: 12px;

// padding
$padding: 40px;
$padding-btn: 22px;
$padding-base: 16px;
$padding-base-half: 10px;
$padding-border-input: 26px 20px;
$padding-input: 40px 32px 40px 0;

// raduis
$radius-base: 7px;
$radius-base2: 14px;
$radius-base4: 40px;

// height
$height-img: 40px;
$height-input: 114px;
$height-item: 308px;
$heigh-cover-max: 984px;
$height-bg_img: 74px;
$height-b_h: 100px;

// width
$width-img: 40px;
$width-100: 100%;
$height-base: 110px;
$width-90:90px;
$width-line:33px;
$line-height-base: 44px;
$line-height: 32px;
$line-height-txt: 38px;

// base transition
$transition: all ease-in-out 0.3s;
$transitionFast: all ease-in-out 0.15s;
$transitionSlow: all ease-in-out 0.4s;

@keyframes cover-fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes content-zoom {
  0% {
    transform: scale(0.9);
  }
  75% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0);
    transform-origin: center;
  }
  100% {
    transform: rotate(360deg);
    transform-origin: center;
  }
}
// 文字过长，显示省略号
.overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes slideYUp {
  0% {
    transform: translate3d(0, -50px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideYDown {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -50px, 0);
  }
}

@mixin pop-cover {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 99;
  background: $color-cover-bg;
}

@mixin pop-wrap {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
}

/* form 表单中，label样式 */
@mixin label {
  text-align-last: justify;
  // text-align: right;
  width: 170px;
  padding-right: $padding-base * 2 ;
  font-size: $font-size-small;
  box-sizing: border-box;
}
/* form 表单中，text文本样式 */
@mixin input-text {
  font-size: $font-size-base;
}

/**
 * key 为动画的名称
 */
@mixin pop-animation($key: info, $y: -50px) {
  &.#{$key}-enter {
    .container {
      transform: translate3d(0, $y, 0); // transform: translateY(-50px);
    }
  }

  &.#{$key}-enter-active {
    animation: cover-fadein 0.3s;
    .container {
      transition: $transitionFast;
    }
  }

  &.#{$key}-leave-to {
    opacity: 0;
    .container {
      transform: translate3d(0, 150px, 0); // transform: translateY(150px);
    }
  }

  &.#{$key}-leave-active {
    transition: all ease 0.3s;
    .container {
      transition: $transitionFast;
    }
  }
}
.dy1{
  background-color:#3698EF;
}
.dy2 {
  background-color: #FDB96F;
}
.dy3 {
  background-color: #AB9DFF;
}
.dy4 {
  background-color: #A3DD51;
}
.dy5 {
  background-color: #FB7790;
}

/* 箭头 */
.arrow::before {
  content: "";
  width: 18px;
  height: 18px;
  border-top: 2px solid $color-txt;
  border-right: 2px solid $color-txt;
  transform: rotate(45deg);
  float: right;
  margin: 4px 0 0 5px;
}
.bar-wrap {
  display: flex;
  background: #fff;
  color: $color-text-title;
  font-size: $font-size-large;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  .item,._item {
    text-align: center;
    flex: 1;
    box-sizing: border-box;
    height: $height-b_h;
    padding: $margin-base-half 0;
    font-size: $font-size-small;
    color: $color-text-title;
    background-color: #fff;
    transition: $transition;
  }
  ._item {
    color: $color-oncolor;
  }
}
